package com.usian.config;

import com.github.pagehelper.PageInfo;
import com.usian.shop.entity.Good;
import com.usian.shop.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "springcloud-provider")
public interface FeignGood {
    @RequestMapping("/good/findAll")
    public PageInfo findAll(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize);
    @PostMapping("/good/update")
    public ResponseResult update(@RequestBody Good good);
}
